/**
 * Copyright (c) 2004-2011 Wang Jinbao(Julian Wong), http://www.ralasafe.com
 * Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php
 */
package com.elancom.framework.commons.codec;

import org.apache.commons.codec.digest.DigestUtils;

/**
 * @author elancom
 * @date 2012-5-27
 */
public class ShaEncrypt implements Encrypt {
	@Override
	public String encrypt(String rawTxt) {
		if (rawTxt == null) {
			return null;
		}
		return DigestUtils.shaHex(rawTxt);
	}
}
